/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eng.scc.core.data;

import java.sql.Date;

/**
 *
 * @author Rafael
 */
public class Login extends Skeleton
{
    private People people;
    private String user = "";
    private String pwd = "";
    private Date creation;
    private short profileAccess;

    public People getPeople()
    {
        return people;
    }

    public void setPeople( People people )
    {
        this.people = people;
    }

    public String getUser()
    {
        return user;
    }

    public void setUser( String user )
    {
        this.user = user;
    }

    public String getPwd()
    {
        return pwd;
    }

    public void setPwd( String pwd )
    {
        this.pwd = pwd;
    }

    public Date getCreation()
    {
        return creation;
    }

    public void setCreation( Date creation )
    {
        this.creation = creation;
    }

    public short getProfileAccess()
    {
        return profileAccess;
    }

    public void setProfileAccess( short profileAccess )
    {
        this.profileAccess = profileAccess;
    }

    @Override
    public String toString()
    {
        return user;
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj == null )
        {
            return false;
        }
        if ( getClass() != obj.getClass() )
        {
            return false;
        }
        final Login other = ( Login ) obj;
        if ( this.getId() != other.getId() )
        {
            return false;
        }
        return true;
    }
}